import Mocks from "mockjs";
import { menuArr } from "../../DynamicMenuGenerate/menu";
import storage from "@/utils/storage";
const baseUrl = "/api/dict";
import { getData, iresponse } from "../index";

const newMenu = storage.get("menu");

const menu = newMenu || menuArr;

Mocks.mock(baseUrl + "/list", () => {
  return iresponse(menuArr);
});

Mocks.mock(baseUrl + "/del", () => {
  return iresponse(menuArr);
});